package com.wangwenjun.concurrency.chapter2.strategy;

/**
    策略模式客户端代码
 */
public class TaxCalculateMain {
    public static void main(String[] args) {
        TaxCalculate taxCalculate = new TaxCalculate(10000d, 2000d, (a, b) -> {
            System.out.println("计算税费");
            return a * 0.1 + b * 0.1;
        });
        System.out.println(taxCalculate.calcTax());
    }
}
